﻿using System.Windows;
using TciNewsReader_2014_04.Interfaces;
namespace TciNewsReader_2014_04.Infrastructure
{
    public class Confirmations : IConfirmations
    {
        public bool Confirm(string question)
        {
            var result = MessageBox.Show(question, Constants.ApplicationTitle, MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No, MessageBoxOptions.DefaultDesktopOnly);
            return result == MessageBoxResult.Yes;
        }
        public void Inform(string message)
        {
            MessageBox.Show(message, Constants.ApplicationTitle, MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.No, MessageBoxOptions.DefaultDesktopOnly);
        }
    }
}
